package com.cunjin.admin.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.cunjin.admin.entity.AdminEntity;
import com.cunjin.base.service.BaseService;

public interface AdminService extends BaseService<AdminEntity> {
	
	/**
	 * 登陆
	 * @param entity
	 * @return
	 */
	Map<String,Object> login(AdminEntity entity,HttpServletRequest req);

	/**
	 * 分页
	 * @param page 页数
	 * @param rows  每页的条数
	 * @param searchName 搜索关键词
	 * @return
	 */
	Map<String, Object> queryByPage(int page, int rows, String searchName);

	/**
	 * 批量删除
	 * @param split
	 * @return
	 */
	Map<String, Object> deleteByids(String[] split);

	/**
	 * 注册
	 * @param entity
	 * @return
	 */
	Map<String, Object> regUser(AdminEntity entity);

}
